/**
*@author       wuwg
*@createTime   2018/03/20
*@updateTime   2018/03/20
*@description
*@rule
 */
@import '../../../config/config.less';
@import '../../../mixins/close/index.less';

@css-prefix-message: ~"@{css-prefix}message";
@css-prefix-icon: ~"@{css-prefix}icon";

.@{css-prefix-message} {
  font-size: @font-size-small;
  position: fixed;
  z-index: @zindex-message;
  width: 100%;
  top: 16px;
  left: 0;
  pointer-events: none;

  &-notice {
    padding: 8px;
    text-align: center;
    transition: height @animation-time @ease-in-out, padding @animation-time @ease-in-out;

    &:first-child {
      margin-top: -8px;
    }

    &-close {
      position: absolute;
      right: 4px;
      top: 9px;
      color: #999;
      outline: none;

      i.@{css-prefix-icon}{
        .close-base(-3px);
      }
    }
  }

  &-notice-content {
    display: inline-block;
    pointer-events: all;
    padding: 8px 16px;
    //border: 1px solid @border-color-split;
    border-radius: @border-radius-small;
    box-shadow: @shadow-base;
    background: #fff;
    position: relative;
    &-text{
      display: inline-block;
    }
  }

  &-notice-closable{
    .@{css-prefix-message}-notice-content-text{
      padding-right: 32px;
    }
  }

  &-success .@{css-prefix-icon} {
    color: @success-color;
  }

  &-error .@{css-prefix-icon} {
    color: @error-color;
  }

  &-warning .@{css-prefix-icon} {
    color: @warning-color;
  }

  &-info .@{css-prefix-icon},
  &-loading .@{css-prefix-icon} {
    color: @primary-color;
  }

  .@{css-prefix-icon} {
    margin-right: 8px;
    font-size: 14px;
    top: 1px;
    position: relative;
  }
}
